function loading(div,step){
    if(!step){
        step=0.00;
    }
    step+=0.05;
    d=window.parent.document.getElementById(div);
    d.innerHTML='<div class="ld_base loading" style="opacity:'+step+';filter:alpha(opacity='+(step*100)+')"></div>';
    if(step<0.6){
        setTimeout('loading("'+div+'",'+step+')',25)
    }else{
        d.innerHTML='<div class="ld_base loading" style="opacity:0.6;filter:alpha(opacity=60)"></div><div class="ld_base progress"></div>';
    }
}

function loadingInto(div,step){
    if(!step){
        step=0.00;
    }
    step+=0.05;
    d=document.getElementById(div);
    d.innerHTML='<div class="ld_base loading" style="opacity:'+step+';filter:alpha(opacity='+(step*100)+')"></div>';
    if(step<0.6){
        setTimeout('loadingInto("'+div+'",'+step+')',25)
    }else{
        d.innerHTML='<div class="ld_base loading" style="z-index:1000;opacity:0.6;filter:alpha(opacity=60)"></div><div class="ld_base progress"></div>';
    }
}
function closeLoading(div,step){

    if(!step){
        step=0.6;
    }
    step-=0.05;
    d=window.parent.document.getElementById(div);
    d.innerHTML='<div class="ld_base loading" style="opacity:'+step+';filter:alpha(opacity='+(step*100)+')"></div>';
    if(step>0){
        setTimeout('closeLoading("'+div+'",'+step+')',25)
    }else{
        d.innerHTML='';
    }
}
function loadingFast(div){
    step=0.6;
    d=window.parent.document.getElementById(div);    
    d.innerHTML='<div class="ld_base loading" style="z-index:1000;opacity:'+step+';filter:alpha(opacity='+(step*100)+')"></div><div class="ld_base progress"></div>';
}
function closeLoadingFast(div){    
    window.parent.document.getElementById(div).innerHTML='';
}
